<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <my-component message="来自父组件的数据"></my-component>
    <script src="https://unpkg.com/vue/dist/vue.min.js"></script>
    <script>
        Vue.component('my-component',{
            props:['message'],
            template:'<div>{{ message }}</div>'
        });
        var app = new Vue({
            el:'#app'
        })
    </script>
</div>
</body>
</html>